﻿


using System;
using System.Collections.Generic;
using System.Collections;
using System.Runtime.Serialization;

namespace UFIDA.U9.Cust.U9Demo.DeliveryBP
{
	/// <summary>
	/// 送货单DTO DTO :自定义的数据传输类型 
	/// 
	/// </summary>
	public  partial class ResultDTO  : UFSoft.UBF.Business.DTOBase
	{
		#region Constructor
		
		/// <summary>
		/// Constructor
		/// </summary>
		public ResultDTO(){
			initData();
		}
		private void initData()
		{
		
					Supplier = 0; 
		
		
					DocLineNo = 0; 
					DocSubLine = 0; 
					POShipLine = 0; 
					Qty = 0m; 
					Price = 0m; 
		
					Item = 0; 
		
		

		}

		#endregion
		
		#region Properties
			/// <summary>
		/// 单号 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.单号
		/// </summary>
		/// <value>System.String</value>
		public System.String DocNo
		{
			get	
			{	
				return (System.String)base.GetValue("DocNo",typeof(System.String));
			}

			 set	
			{
				base.SetValue("DocNo",value);
			}
		}
				/// <summary>
		/// 供应商 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.供应商
		/// </summary>
		/// <value>System.Int64</value>
		public System.Int64 Supplier
		{
			get	
			{	
				return (System.Int64)base.GetValue("Supplier",typeof(System.Int64));
			}

			 set	
			{
				base.SetValue("Supplier",value);
			}
		}
				/// <summary>
		/// 供应商编码 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.供应商编码
		/// </summary>
		/// <value>System.String</value>
		public System.String Supplier_Code
		{
			get	
			{	
				return (System.String)base.GetValue("Supplier_Code",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Supplier_Code",value);
			}
		}
				/// <summary>
		/// 供应商 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.供应商
		/// </summary>
		/// <value>System.String</value>
		public System.String Supplier_Name
		{
			get	
			{	
				return (System.String)base.GetValue("Supplier_Name",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Supplier_Name",value);
			}
		}
				/// <summary>
		/// 行号 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.行号
		/// </summary>
		/// <value>System.Int32</value>
		public System.Int32 DocLineNo
		{
			get	
			{	
				return (System.Int32)base.GetValue("DocLineNo",typeof(System.Int32));
			}

			 set	
			{
				base.SetValue("DocLineNo",value);
			}
		}
				/// <summary>
		/// 子行号 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.子行号
		/// </summary>
		/// <value>System.Int32</value>
		public System.Int32 DocSubLine
		{
			get	
			{	
				return (System.Int32)base.GetValue("DocSubLine",typeof(System.Int32));
			}

			 set	
			{
				base.SetValue("DocSubLine",value);
			}
		}
				/// <summary>
		/// 采购计划行ID (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.采购计划行ID
		/// </summary>
		/// <value>System.Int64</value>
		public System.Int64 POShipLine
		{
			get	
			{	
				return (System.Int64)base.GetValue("POShipLine",typeof(System.Int64));
			}

			 set	
			{
				base.SetValue("POShipLine",value);
			}
		}
				/// <summary>
		/// 数量 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.数量
		/// </summary>
		/// <value>System.Decimal</value>
		public System.Decimal Qty
		{
			get	
			{	
				return (System.Decimal)base.GetValue("Qty",typeof(System.Decimal));
			}

			 set	
			{
				base.SetValue("Qty",value);
			}
		}
				/// <summary>
		/// 单价 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.单价
		/// </summary>
		/// <value>System.Decimal</value>
		public System.Decimal Price
		{
			get	
			{	
				return (System.Decimal)base.GetValue("Price",typeof(System.Decimal));
			}

			 set	
			{
				base.SetValue("Price",value);
			}
		}
				/// <summary>
		/// 日期 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.日期
		/// </summary>
		/// <value>System.DateTime</value>
		public System.DateTime Date
		{
			get	
			{	
				return (System.DateTime)base.GetValue("Date",typeof(System.DateTime));
			}

			 set	
			{
				base.SetValue("Date",value);
			}
		}
				/// <summary>
		/// 料品 (该属性可为空,但有默认值)
		/// 送货单DTO.Misc.料品
		/// </summary>
		/// <value>System.Int64</value>
		public System.Int64 Item
		{
			get	
			{	
				return (System.Int64)base.GetValue("Item",typeof(System.Int64));
			}

			 set	
			{
				base.SetValue("Item",value);
			}
		}
				/// <summary>
		/// 料号 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.料号
		/// </summary>
		/// <value>System.String</value>
		public System.String Item_Code
		{
			get	
			{	
				return (System.String)base.GetValue("Item_Code",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Item_Code",value);
			}
		}
				/// <summary>
		/// 品名 (该属性可为空,且无默认值)
		/// 送货单DTO.Misc.品名
		/// </summary>
		/// <value>System.String</value>
		public System.String Item_Name
		{
			get	
			{	
				return (System.String)base.GetValue("Item_Name",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Item_Name",value);
			}
		}
		
		#endregion	
		#region Multi_Fields
													
		#endregion 

		#region ModelResource
		/// <summary>
		/// 送货单DTO的显示名称资源--已经废弃，不使用.
		/// </summary>
		public string Res_TypeName {	get {return "" ;}	}
		/// <summary>
		/// 单号的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_DocNo　{ get { return "";　}　}
		/// <summary>
		/// 供应商的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Supplier　{ get { return "";　}　}
		/// <summary>
		/// 供应商编码的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Supplier_Code　{ get { return "";　}　}
		/// <summary>
		/// 供应商的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Supplier_Name　{ get { return "";　}　}
		/// <summary>
		/// 行号的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_DocLineNo　{ get { return "";　}　}
		/// <summary>
		/// 子行号的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_DocSubLine　{ get { return "";　}　}
		/// <summary>
		/// 采购计划行ID的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_POShipLine　{ get { return "";　}　}
		/// <summary>
		/// 数量的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Qty　{ get { return "";　}　}
		/// <summary>
		/// 单价的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Price　{ get { return "";　}　}
		/// <summary>
		/// 日期的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Date　{ get { return "";　}　}
		/// <summary>
		/// 料品的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Item　{ get { return "";　}　}
		/// <summary>
		/// 料号的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Item_Code　{ get { return "";　}　}
		/// <summary>
		/// 品名的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Item_Name　{ get { return "";　}　}
		#endregion 




		#region EntityData exchange
		
		#region  Do SerializeKey -ForDTOType
		//反序化Key到Data的ID中　－－由FromEntityData自动调用，不处理层次关系
		private void DeSerializeKey(ResultDTOData data)
		{
		













		}

		#endregion 
		
		/// <summary>
		/// Copy Entity From EntityData
		/// </summary>
		public void FromEntityData(ResultDTOData data)
		{
			this.FromEntityData(data,new Hashtable());
		}
		//used by ubf..
		public void FromEntityData(ResultDTOData data,IDictionary dict)
		{
			if (data == null)
				return;
			if (dict == null ) dict = new Hashtable() ;
			dict[data] = this;
			DeSerializeKey(data);
		
			this.DocNo = data.DocNo;

			this.Supplier = data.Supplier;

			this.Supplier_Code = data.Supplier_Code;

			this.Supplier_Name = data.Supplier_Name;

			this.DocLineNo = data.DocLineNo;

			this.DocSubLine = data.DocSubLine;

			this.POShipLine = data.POShipLine;

			this.Qty = data.Qty;

			this.Price = data.Price;

			this.Date = data.Date;

			this.Item = data.Item;

			this.Item_Code = data.Item_Code;

			this.Item_Name = data.Item_Name;

		}

		/// <summary>
		/// Create EntityData From Entity
		/// </summary>
		public ResultDTOData ToEntityData()
		{
			return ToEntityData(null,new Hashtable());
		}
		/// <summary>
		/// Create EntityData From Entity - used by ubf 
		/// </summary>
		public ResultDTOData ToEntityData(ResultDTOData data, IDictionary dict){
			if (data == null)
				data = new ResultDTOData();
			if (dict == null ) 
				dict = new Hashtable() ;
			else
            {
                if (dict.Contains(this))
                {
                    data = (ResultDTOData)dict[this];
                    return data;
                }
            }
			dict[this] = data;
		
			data.DocNo = this.DocNo;

			data.Supplier = this.Supplier;

			data.Supplier_Code = this.Supplier_Code;

			data.Supplier_Name = this.Supplier_Name;

			data.DocLineNo = this.DocLineNo;

			data.DocSubLine = this.DocSubLine;

			data.POShipLine = this.POShipLine;

			data.Qty = this.Qty;

			data.Price = this.Price;

			data.Date = this.Date;

			data.Item = this.Item;

			data.Item_Code = this.Item_Code;

			data.Item_Name = this.Item_Name;

			return data ;
		}

		#endregion	
	}	
	
}